package com.jwsoft.manager.core.dao.mapper;

import com.jwsoft.manager.core.dao.model.EduhLivePlace;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwsoft.manager.core.dao.model.EdutLivePlace;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* <p>
  * 居住证历史表 Mapper 接口
  * </p>
*
* @author zhiyuan
* @since 2023-09-13
*/
@Mapper
public interface EduhLivePlaceMapper extends BaseMapper<EduhLivePlace> {

    int saveBatch(@Param("hempLivePlaces") List<EduhLivePlace> hempLivePlaces);

    /**
     * 根据任务详情id查询出数据
     * @param taskDetailId
     * @return
     */
    List<EduhLivePlace> selectByTaskDetailId(@Param("taskDetailId")  String taskDetailId,@Param("currentPage") int currentPage, @Param("pageSize") Integer pageSize);

    void deleteHistoryById(@Param("livePlaceId") String livePlaceId);
}
